using SqlSugar;
using QiAdmin.Core;
using QiAdmin.Model.Dtos;

namespace QiAdmin.Service
{
    public interface IBaseService<T, InT, OutT>
        where T : class, new()
        where InT : class, new()
        where OutT : class, new()
    {
       public Expressionable<T> CreateExp();
       public CommonResult<PageOutput<OutT>> GetPageList(InT input);
       public CommonResult<OutT> Get(InT input);
       public CommonResult Add(InT input);
       public CommonResult AddRange(List<InT> input);
       public CommonResult Edit(InT input);
       public CommonResult Remove(InT input);
       public CommonResult RemoveRange(List<InT> input);
    }
}